﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Lecture.Master" AutoEventWireup="true" CodeBehind="create_student.aspx.cs" Inherits="Final.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style3
        {
            color: #FF6600;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
    <div class="post">
    <div style="clear: both; height: 478px;">
        <h2 class="style3">
        <t>
            New Student Profile</h2>
        <br />
        <br />
        </t>
        <t>
        <asp:Label ID="lbladmin" runat="server" Text="Admin No:"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtadmin" runat="server" Width="242px"></asp:TextBox>
        </t>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="txtadmin" Display="Dynamic" 
            ErrorMessage="Admin Number Required" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="lblname" runat="server" Text="Name:"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
        <asp:TextBox ID="txtname" runat="server" Width="242px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="txtname" Display="Dynamic" ErrorMessage="Name Required" 
            ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="lblpassword" runat="server" Text="Password:"></asp:Label>
        <t>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </t>
        <asp:TextBox ID="txtpassword" runat="server" Width="242px"></asp:TextBox>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ControlToValidate="txtpassword" ErrorMessage="Enter 5-15 alphanumeric" 
            ValidationExpression="^[a-z0-9_-]{3,15}$" ForeColor="Red"></asp:RegularExpressionValidator>
        <br />
        <br />
        <asp:Label ID="lblcode" runat="server" Text="Course Code:"></asp:Label>
        <t>&nbsp;&nbsp; </t>
        <asp:TextBox ID="txtcode" runat="server" Width="242px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="txtcode" Display="Dynamic" 
            ErrorMessage="Enter Course Code" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="lblcname" runat="server" Text="Course Name:"></asp:Label>
        <t>&nbsp; </t>
        <asp:TextBox ID="txtcname" runat="server" Width="242px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
            ControlToValidate="txtcname" Display="Dynamic" 
            ErrorMessage="Enter Course Name" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="Label1" runat="server" Text="Module:"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="txtmodule" runat="server" Width="242px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
            ControlToValidate="txtmodule" ErrorMessage="Enter module" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="lblcontact" runat="server" Text="Contact No:"></asp:Label>
        <t>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </t>
        <asp:TextBox ID="txtcontact" runat="server" Width="242px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
            ControlToValidate="txtcontact" Display="Dynamic" 
            ErrorMessage="Enter Contact Number" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="lblemail" runat="server" Text="Email:"></asp:Label>
        <t>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </t>
        <asp:TextBox ID="txtemail" runat="server" Width="242px"></asp:TextBox>
        <t>&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator6" 
            runat="server" ControlToValidate="txtemail" Display="Dynamic" 
            ErrorMessage="Enter Email" ForeColor="Red"></asp:RequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;<br />
        <br />
        Role:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="txtRole" runat="server" Width="242px"></asp:TextBox>
        <t>&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator8" 
            runat="server" ControlToValidate="txtRole" Display="Dynamic" 
            ErrorMessage="Enter Role (student/lecturer)" ForeColor="Red"></asp:RequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;</t><br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btncreate" runat="server" Text="Create" 
            onclick="btncreate_Click" />
        &nbsp;&nbsp;&nbsp;</t><asp:Button ID="btnclear" runat="server" Text="Clear" 
            onclick="btnclear_Click" Width="59px" />
        <br />
        </div>
</div>

</asp:Content>

